package com.saris.primego.dao;

import com.saris.primego.pojo.entity.Category;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryRepository extends
        JpaRepository<Category, Long>,
        JpaSpecificationExecutor<Category>
{

    List<Category> findAllByTypeAndStatus(Integer type, Integer status);

    List<Category> findAllByStatus(Integer status);
}
